package com.canyou.activiti.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 流程实例激活/挂起传输模型
 *
 * @author fy
 * @date 2021/3/5 14:01
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "ProcessInstanceSuspendDTO", description = "流程实例激活/挂起传输模型")
public class ProcessInstanceSuspendDTO {

    @ApiModelProperty(value = "流程实例id", required = true)
    @NotBlank(message = "流程实例id不能为空")
    private String processInstanceId;

    @ApiModelProperty(value = "流程实例状态 1 激活 2 挂起", required = true)
    @NotNull(message = "流程实例激活/挂起状态值不能为空")
    @Range(min = 1, max = 2, message = "流程实例激活/挂起值为1或2")
    private Integer suspensionState;

}
